package com.ftcs.service;

import com.ftcs.controller.common.request.TodoTasksRequest;
import com.ftcs.entity.PurchaseApply;
import com.ftcs.model.LeaveTaskDTO;
import com.ftcs.model.PurchaseTaskDTO;
import org.activiti.engine.runtime.ProcessInstance;

import java.util.Map;

public interface PurchaseService {

    ProcessInstance startWorkflow(PurchaseApply apply, String userid, String proDefName, Map<String, Object> variables);

    PurchaseApply getPurchase(int id);

    void updatePurchase(PurchaseApply a);

    PurchaseTaskDTO listTodoTasks(TodoTasksRequest request);
}
